package com.zdb.order.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Author Lx
 * @Date 2020/8/29 14:59
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@Setter
@Getter
@TableName("zdb_pms_seller_info")
public class SellerInfo {
    @TableId("seller_id")
    private int sellerId;               //商家信息表id
    @TableField("username")
    private String userName;            //商家名称
    @TableField("password")
    private String password;            //商家密码
    @TableField("phone")
    private String phone;               //用户手机号
    @TableField("create_time")
    private Date createTime;            //创建时间
    @TableField("update_time")
    private Date updateTime;            //修改时间
    @TableField("s_photo_address")
    private String sPhotoAddress;            //修改时间

    @Override
    public String toString() {
        return "SellerInfo{" +
                "sellerId=" + sellerId +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", sPhotoAddress=" + sPhotoAddress +
                '}';
    }

    public int getSellerId() {
        return sellerId;
    }

    public void setSellerId(int sellerId) {
        this.sellerId = sellerId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getsPhotoAddress() {
        return sPhotoAddress;
    }

    public void setsPhotoAddress(String sPhotoAddress) {
        this.sPhotoAddress = sPhotoAddress;
    }
}

